package com.ruoyi.consultation.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 质询信息对象 consultation
 * 
 * @author ruoyi
 * @date 2024-07-07
 */
public class Consultation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 简介 */
    @Excel(name = "简介")
    private String descr;

    /** 封面 */
    @Excel(name = "封面")
    private String cover;

    /** 标签 */
    @Excel(name = "标签")
    private String tags;

    /** 用户名字 */
    @Excel(name = "用户名字")
    private String userName;

    /** 发布日期 */
    @Excel(name = "发布日期")
    private String publishDate;

    /** 阅读量 */
    @Excel(name = "阅读量")
    private Long readCount;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setDescr(String descr) 
    {
        this.descr = descr;
    }

    public String getDescr() 
    {
        return descr;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setTags(String tags) 
    {
        this.tags = tags;
    }

    public String getTags() 
    {
        return tags;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setPublishDate(String publishDate) 
    {
        this.publishDate = publishDate;
    }

    public String getPublishDate() 
    {
        return publishDate;
    }
    public void setReadCount(Long readCount) 
    {
        this.readCount = readCount;
    }

    public Long getReadCount() 
    {
        return readCount;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("descr", getDescr())
            .append("cover", getCover())
            .append("tags", getTags())
            .append("userName", getUserName())
            .append("publishDate", getPublishDate())
            .append("readCount", getReadCount())
            .append("categoryId", getCategoryId())
            .toString();
    }
}
